package com.lailang.lailang;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        if (findViewById(R.id.tabbar_fg) != null) {
            if (savedInstanceState == null) {
                TabbarFragment fragment = new TabbarFragment();
                fragment.setArguments(getIntent().getExtras());
                getSupportFragmentManager().beginTransaction().add(R.id.tabbar_fg, fragment).commit();
            }
        }

    }
}
